<!--引入init配置文件-->
<?php
    require "init.php";

    if(empty($_SESSION['home'])){
        redirect('请登录',1,ROOT_URL . "login.php");
        die;
    }

?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <link rel="icon" href="./public/home/imgs/logo.jpg">
    <title>新增地址</title>

    <!-- Bootstrap -->
    <link href="./public/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="./public/home/css/index.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="./public/home/js/html5shiv.min.js"></script>
    <script src="./public/home/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <!--引入导航条-->
    <?php require ROOT_PATH."./com/nav.php" ?>

    <!--新增地址开始-->
    <div class="container mt50">
        <div class="row mt50">
            <form action="<?php echo ROOT_URL;?>com/buydo.php" method="post">
                <input type="hidden" name="act" value="add_address">
                <div class="form-group ">
                    <label for="address" class="control-label col-md-2 text-right">地址 <span class="required">*</span></label>
                    <div class="col-md-10">
                        <textarea name="address"  class="form-control" rows="3" placeholder="请输入您的收货地址"></textarea>
                    </div>
                </div>

                <div class="form-group">
                    <div class="row col-md-3 col-md-offset-2">
                        <br>
                        <input type="submit" value="提交" class=" btn btn-primary">
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="reset" value="重置" class=" btn btn-danger">
                    </div>

                </div>
            </form>
        </div>

    </div>
    <!--新增地址结束-->

    <!--引入底部开始-->
    <?php require ROOT_PATH."./com/footer.php" ?>


<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="./public/home/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="./public/home/js/bootstrap.min.js"></script>
</body>
</html>

